package com.darwin.darwinUnit
{
	public class DarwinTestRunner
	{
		public function DarwinTestRunner()
		{
			_runnerList = new Vector.<DarwinTestRunner>();
			_caseList = new Vector.<DarwinTestCase>();
		}
		
		private var _runnerList:Vector.<DarwinTestRunner>;
		private var _caseList:Vector.<DarwinTestCase>;
		
		
		public function addTestRunner(testRunner:DarwinTestRunner):void
		{
			_runnerList.push(testRunner);
		}
		
		public function addTestCase(textCase:DarwinTestCase):void
		{
			_caseList.push(textCase);
		}
		
		
		public function run():void
		{
			var i:int;
			for(i = 0;i<_runnerList.length;i++)
			{
				_runnerList[i].run();
			}
			for(i = 0;i<_caseList.length;i++)
			{
				_caseList[i].run();
			}
		}
	}
}